<?php echo CHtml::beginForm(array('/site/login')); ?>
<div class="row">
    <?php echo CHtml::activeLabel($form,'username'); ?>
    <br/>
    <?php echo CHtml::activeTextField($form,'username') ?>
    <?php echo CHtml::error($form,'username'); ?>
</div>
<div class="row">
    <?php echo CHtml::activeLabel($form,'password'); ?>
    <br/>
    <?php echo CHtml::activePasswordField($form,'password') ?>
    <?php echo CHtml::error($form,'password'); ?>
</div>
<div class="row">
    <?php echo CHtml::submitButton(Yii::t('site','Log In')); ?>
    <?php echo CHtml::activeCheckBox($form,'rememberMe'); ?>
    <?php echo CHtml::activeLabel($form,'rememberMe'); ?>
</div>
<?php echo CHtml::endForm(); ?>
<script type="text/javascript">
<!--
document.getElementById('LoginForm_username').focus();
document.getElementById('LoginForm_username').select();
// -->
</script>
<br/><p>
    <?php echo CHtml::link(Yii::t('site','Forgot Password'),array('/site/forgotPassword')); ?>&nbsp;
    <?php echo CHtml::link(Yii::t('site','Register'),array('/site/register')); ?>&nbsp;
</p>
<?php echo CHtml::form() ?>
    <div id="langdrop" style="vertical-align:middle">
        <?php echo CHtml::encode(Yii::t('site','Language:')); ?>&nbsp;
        <?php echo CHtml::dropDownList(
            '_lang', 
            $currentLang, 
            $this->controller->getSupportedLocales(),
            /*
            array(
                'en_us' => Yii::t('site','English'), 
                'de' => Yii::t('site','German')
            ),
             */
            array('onchange'=>"self.location.href='?_lang='+this.value;",'style'=>'font-size:9pt')
        ) ?>
    </div>
</form>
